package com.vipboot.framework.core.errorcode;

import lombok.Getter;

/**
 * 用户级别的错误码（用户引起的错误返回码，可以不用关注）
 */
@Getter
public enum UserErrorCode implements ErrorCode {

    UserError(30000, "用户级别错误"),
    ParamError(30001, "参数错误"),
    DataNotExist(30002, "数据不存在"),
    AlreadyExist(30003, "数据已存在了呀~"),
    RepeatSubmit(30004, "亲~您操作的太快了，请稍等下再操作~"),
    NoPermission(30005, "对不起，您没有权限访问此内容哦~"),
    Developing(30006, "系统正在紧急开发中，敬请期待~"),
    LoginStateInvalid(30007, "您还未登录或登录失效，请重新登录！"),
    UserStatusError(30008, "用户状态异常"),
    FormRepeatSubmit(30009, "请勿重复提交"),
    LoginFailLock(30010, "登录连续失败已经被锁定，无法登录"),
    LoginFailWillLock(30011, "登录连续失败将会锁定提醒"),
    LoginActiveTimeout(30012, "长时间未操作，需要重新登录"),
    ;

    private final int code;

    private final String msg;

    private final String level;

    UserErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
        this.level = LEVEL_USER;
    }
}
